#ifndef __CAN_HW_H_
#define __CAN_HW_H_

#include "types_local.h"
#include "can_drv.h"


extern XMC_CAN_NODE_t *can_node_ext;
extern XMC_CAN_NODE_t *can_node_mcu;


/*============================================================================
  function-prototype                                                      */

extern void receive_can_messages_tic(void);
extern void transmit_can_messages_ext(void);
extern int can_got_a_message(void);
extern void can_hardware_init(void);
extern void can_hardware_test_tic(void);
extern s16 mailbox_vInit(s8 port, s32 acceptance_id);
extern void set_mailbox_assigned_flag(s16 mailbox_no);
extern void set_up_pending_flag(s16 mailbox_no);
void send_can_message_hw(can_mailbox *mailbox);


#endif
